/* Canvas_Sub1 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.awt.Canvas;
import java.awt.Component;
import java.awt.Graphics;

public class Canvas_Sub1 extends Canvas {
	public static JString aClass3_13;
	public static JString aClass3_14 = Class39_Sub5_Sub9.createJString(105, "white:");
	public static int anInt15;
	public static JString aClass3_16;
	public static JString aClass3_17 = (Class39_Sub5_Sub9.createJString(121, "und die Schaltfl-=che (WSpielkonto erstellen(W am"));
	public static JString aClass3_18;
	public static JString aClass3_19;
	public static JString aClass3_20;
	public static int anInt21;
	public Component aComponent22;
	public static JString aClass3_23;
	public static int anInt24;

	public void update(Graphics graphics) {
		aComponent22.update(graphics);
	}

	public static void method39(int i) {
		Class7.method130((byte) 54);
		if (Class4.anInt80 == 1)
			Class47.aClass39_Sub5_Sub10_Sub3Array893[Class26.anInt503 / 100].method670(Class62_Sub1.anInt1590 - 8 - 4, Class62_Sub2.anInt1596 - 8 - 4);
		if (Class4.anInt80 == 2)
			Class47.aClass39_Sub5_Sub10_Sub3Array893[Class26.anInt503 / 100 + 4].method670(Class62_Sub1.anInt1590 - 8 - 4, Class62_Sub2.anInt1596 - 8 - 4);
		if (i == -32024) {
			if (Class26.anInt485 != -1) {
				Class39_Sub4.method459(Class26.anInt485, (byte) 127);
				Deque.method955(334, 512, 0, Class26.anInt485, 0, -1, 4);
			}
			if (Class39_Sub11.openInterface != -1) {
				Class39_Sub4.method459(Class39_Sub11.openInterface, (byte) 112);
				Deque.method955(334, 512, 0, Class39_Sub11.openInterface, 0, -1, 0);
			}
			Renderable.method487(false);
			if (!Class39_Sub12.aBoolean1493) {
				JString.method95(i ^ ~0x7d26);
				Class31.method320(-23401);
			} else if (Class37.anInt653 == 0)
				Class1.method49(-104);
			if (Class40.anInt756 == 1)
				RSInterface.aClass39_Sub5_Sub10_Sub3_2113.method670(472, 296);
			if (Class39_Sub5_Sub3.aBoolean1718) {
				int i_0_ = 507;
				int i_1_ = 16776960;
				int i_2_ = 20;
				Tile.aClass39_Sub5_Sub10_Sub1_1903.method630((Class39_Sub5_Sub11.method708((new JString[] { Class39_Sub5_Sub6.aClass3_1774, Class57.method1007((byte) 71, Class39_Sub5_Sub18.anInt2119) }), 14569)), i_0_, i_2_, 16776960);
				i_2_ += 15;
				Runtime runtime = Runtime.getRuntime();
				int i_3_ = (int) ((runtime.totalMemory() + -runtime.freeMemory()) / 1024L);
				if (i_3_ > 32768 && Class45.lowDetail)
					i_1_ = 16711680;
				if (i_3_ > 65536 && !Class45.lowDetail)
					i_1_ = 16711680;
				Tile.aClass39_Sub5_Sub10_Sub1_1903.method630((Class39_Sub5_Sub11.method708(new JString[] { Class39_Sub5_Sub4_Sub5.aClass3_2328, Class57.method1007((byte) 71, i_3_), Class63.aClass3_1125 }, 14569)), i_0_, i_2_, i_1_);
				i_2_ += 15;
				if (Class44.aBoolean833) {
					Tile.aClass39_Sub5_Sub10_Sub1_1903.method630(Class62_Sub1.aClass3_1594, i_0_, i_2_, 16711680);
					Class44.aBoolean833 = false;
					i_2_ += 15;
				}
				if (Tile.aBoolean1908) {
					Tile.aClass39_Sub5_Sub10_Sub1_1903.method630(RSSocket.aClass3_296, i_0_, i_2_, 16711680);
					Tile.aBoolean1908 = false;
					i_2_ += 15;
				}
				if (Class11.aBoolean183) {
					Tile.aClass39_Sub5_Sub10_Sub1_1903.method630(Class46_Sub1.aClass3_1559, i_0_, i_2_, 16711680);
					Class11.aBoolean183 = false;
					i_2_ += 15;
				}
			}
			if (Class39_Sub7.anInt1380 != 0) {
				int i_4_ = Class39_Sub7.anInt1380 / 50;
				int i_5_ = i_4_ / 60;
				i_4_ %= 60;
				if (i_4_ < 10)
					Tile.aClass39_Sub5_Sub10_Sub1_1903.method647((Class39_Sub5_Sub11.method708(new JString[] { Class39_Sub4.aClass3_1326, Class57.method1007((byte) 71, i_5_), Node.aClass3_743, Class57.method1007((byte) 71, i_4_) }, i + 46593)), 4, 329, 16776960);
				else
					Tile.aClass39_Sub5_Sub10_Sub1_1903.method647((Class39_Sub5_Sub11.method708(new JString[] { Class39_Sub4.aClass3_1326, Class57.method1007((byte) 71, i_5_), Class39_Sub5_Sub3.aClass3_1723, Class57.method1007((byte) 71, i_4_) }, 14569)), 4, 329, 16776960);
			}
		}
	}

	public void paint(Graphics graphics) {
		aComponent22.paint(graphics);
	}

	public static ObjectDef method40(int i, byte i_6_) {
		ObjectDef class39_sub5_sub15 = ((ObjectDef) Class11.aClass7_184.method133((byte) -106, (long) i));
		if (class39_sub5_sub15 != null)
			return class39_sub5_sub15;
		byte[] is = Deque.aClass9_918.method165(30605, 6, i);
		class39_sub5_sub15 = new ObjectDef();
		class39_sub5_sub15.anInt1931 = i;
		if (is != null)
			class39_sub5_sub15.method741(new Stream(is), 122);
		class39_sub5_sub15.method739(false);
		if (class39_sub5_sub15.aBoolean1953) {
			class39_sub5_sub15.aBoolean1949 = false;
			class39_sub5_sub15.aBoolean1928 = false;
		}
		Class11.aClass7_184.method135(class39_sub5_sub15, (long) i, (byte) 127);
		return class39_sub5_sub15;
	}

	public static void method41(byte i) {
		for (Class39_Sub10 class39_sub10 = (Class39_Sub10) Class4.aClass49_74.method969(false); class39_sub10 != null; class39_sub10 = (Class39_Sub10) Class4.aClass49_74.method963((byte) -87)) {
			if (class39_sub10.aClass39_Sub5_Sub15_1428 != null)
				class39_sub10.method864(-67);
		}
	}

	public Canvas_Sub1(Component component) {
		aComponent22 = component;
	}

	public static void method42(int i) {
		aClass3_20 = null;
		aClass3_16 = null;
		aClass3_23 = null;
		aClass3_17 = null;
		aClass3_13 = null;
		aClass3_14 = null;
		aClass3_18 = null;
		aClass3_19 = null;
	}

	static {
		aClass3_13 = aClass3_14;
		aClass3_20 = Class39_Sub5_Sub9.createJString(108, "Cabbage");
		anInt21 = 0;
		aClass3_18 = Class39_Sub5_Sub9.createJString(106, "Zu viele Verbindungen von Ihrer Adresse)3");
		anInt15 = 0;
		aClass3_23 = Class39_Sub5_Sub9.createJString(123, "Login server offline)3");
		aClass3_19 = Class39_Sub5_Sub9.createJString(117, "Neuer Benutzer");
		aClass3_16 = aClass3_23;
		anInt24 = 0;
	}
}
